package com.kgc.personcommon.remote;

import com.kgc.basic.pojo.BOM;
import com.kgc.basic.util.ResponseMsg;
import com.kgc.personcommon.pojo.Department;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

public interface DeptRemote {
    @RequestMapping("getDeptPage")
    @ResponseBody
    ResponseMsg getDeptPage(@RequestBody Map<String, Object> map);
    @RequestMapping("addDept")
    @ResponseBody
    ResponseMsg addDept(@RequestBody Department department);
    @RequestMapping("updateDept")
    @ResponseBody
    ResponseMsg updateDept(@RequestBody Department department);
    @RequestMapping("delDept")
    @ResponseBody
    ResponseMsg delDept(@RequestParam("id") String id);
    @RequestMapping("getDeptById")
    @ResponseBody
    public ResponseMsg getDeptById(@RequestParam("id") String id);
    @RequestMapping("getAllDept")
    @ResponseBody
    public ResponseMsg getAllDept(Map<String, Object> map);
}
